/* 文本省略 */
@mixin ellis($var) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $var;
  -webkit-box-orient: vertical;
}
@for $var from 1 through 10 {
  .elli-#{$var} {
    @include ellis($var);
    &-hover {
      @include ellis($var);
      &:hover {
        -webkit-line-clamp: unset;
      }
    }
  }
}

/* 滚动条 */
@mixin scrollbar {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track {
    background-color: transparent;
  }

  ::-webkit-scrollbar-thumb {
    border-width: 2px;
    border-style: solid;
    border-color: #fff;
    border-radius: 6px;
    background-color: rgba(144, 147, 153, 0.3);
    &:hover {
      background: rgba(144, 147, 153, 0.5);
    }
  }
}

/* PC端 */
@if $env == "PC" {
  @media screen and (min-width: 750px) {
    @include scrollbar;
  }
}
